<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
      xmlns:h="http://xmlns.jcp.org/jsf/html"
      xmlns:f="http://xmlns.jcp.org/jsf/core">

    <ui:composition template="/template.xhtml">
        <ui:define name="title">
            <h:outputText value="#{bundle.EditEmpAccidTitle}"></h:outputText>
        </ui:define>
        <ui:define name="body">
            <h:panelGroup id="messagePanel" layout="block">
                <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
            </h:panelGroup>
            <h:form>
                <h:panelGrid columns="2">
                    <h:outputLabel value="#{bundle.EditEmpAccidLabel_empAccidPK_accidenteid}" for="empAccidPK_accidenteid" />
                    <h:inputText id="empAccidPK_accidenteid" value="#{empAccidController.selected.empAccidPK.accidenteid}" title="#{bundle.EditEmpAccidTitle_empAccidPK_accidenteid}" required="true" requiredMessage="#{bundle.EditEmpAccidRequiredMessage_empAccidPK_accidenteid}"/>
                    <h:outputLabel value="#{bundle.EditEmpAccidLabel_empAccidPK_empid}" for="empAccidPK_empid" />
                    <h:inputText id="empAccidPK_empid" value="#{empAccidController.selected.empAccidPK.empid}" title="#{bundle.EditEmpAccidTitle_empAccidPK_empid}" required="true" requiredMessage="#{bundle.EditEmpAccidRequiredMessage_empAccidPK_empid}"/>
                </h:panelGrid>
                <h:commandLink action="#{empAccidController.update}" value="#{bundle.EditEmpAccidSaveLink}"/>
                <br />
                <br />
                <h:link outcome="View" value="#{bundle.EditEmpAccidViewLink}"/>
                <br />
                <h:commandLink action="#{empAccidController.prepareList}" value="#{bundle.EditEmpAccidShowAllLink}" immediate="true"/>
                <br />
                <br />
                <h:link outcome="/index" value="#{bundle.EditEmpAccidIndexLink}" />
            </h:form>
        </ui:define>
    </ui:composition>

</html>
